package com.forcht.ioc.factory;

/**
 * Created by forcht on 2018/4/18.
 */
public class OutputService {

    private HelloWorldService helloWorldService;

    public void output(){
        System.out.println(helloWorldService.getText());
    }
    public HelloWorldService getHelloWorldService() {
        return helloWorldService;
    }

    public void setHelloWorldService(HelloWorldService helloWorldService) {
        this.helloWorldService = helloWorldService;
    }
}
